import * as types from './mutations_types';

module.exports = {
    show_loading: ({ commit }) => {
        return new Promise((resolve, reject) => {
            commit(types.SHOW_LOADING);
            resolve()
        });
    },

    hide_loading: ({ commit }) => {
        return new Promise((resolve, reject) => {
            commit(types.HIDE_LOADING);
            resolve()
        });
    },
    update_qiniu_token: ({
        commit
    }, obj) => {
        commit(types.UPDATE_QINIU_TOKEN, obj);
    },
};